<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">

	<ui:composition>
		<h:form prependId="false">
			<table id="imobiliaria-footer" cellpadding="0" cellspacing="0">
				<tbody>
					<tr>
						<td valign="top">
							<div class="titlebox" style="background-color: ##{searchImovelController.cliente.template.corBarra};">
								<h:outputText value="#{searchImovelController.cliente.endereco.rua}" />,<h:outputText value="#{searchImovelController.cliente.endereco.numero}" /> - 
								<h:outputText value="#{searchImovelController.cliente.endereco.bairro}" /> - <h:outputText value="#{searchImovelController.cliente.endereco.municipio.nome}" />/<h:outputText value="#{searchImovelController.cliente.endereco.municipio.estado.sigla}" />					
							</div>
						</td>					
					</tr>
					<tr>
						<td colspan="2"><p:spacer height="20px" /> </td>
					</tr>
					<tr>
						<td valign="top">
							<table id="content-footer" cellpadding="0" cellspacing="0">								
								<tr>
									<td height="100px" style="background-color: ##{searchImovelController.cliente.template.corFundoRodape};">
										<table cellpadding="0" cellspacing="0" width="100%">											
											<tr>
												<td align="left" width="10%"><p:graphicImage value="#{resource['images:logos/telemarketing.jpg']}" width="70px" />  </td>
												<td width="60%" align="left">
													Entre em contato conosco,<br/>
													<b>
														<p:commandLink action="#{templateController.loadContato}" ajax="false" value="#{msg['body.header.menu.cliqueaqui']}" styleClass="template-menu-link">														
															<f:param name="idCliente" value="#{searchImovelController.cliente.id}" />
														</p:commandLink>
													</b> 
													e fale com um <br/>de nossos atendentes.
												</td>
												<td	width="30%" align="right">
													<table cellpadding="0" cellspacing="0" width="100%">
														<tr>
															<td><h:outputText value="#{msg['body.loginpanel.login.label']}" />:</td>
															<td><p:inputText id="j_username" styleClass="inputTextGrid" label="#{msg['body.loginpanel.login.label']}" /></td>
														</tr>
														<tr>
															<td colspan="2"><p:spacer height="5px;"/></td>
														</tr>
														<tr>
															<td><h:outputText value="#{msg['body.loginpanel.password.label']}" />:</td>
															<td><p:password id="j_password" feedback="false" styleClass="inputTextGrid" label="#{msg['body.loginpanel.password.label']}"/></td>
														</tr>
														<tr>
															<td colspan="2"><p:spacer height="5px;"/></td>
														</tr>
														<tr>
															<td colspan="2" align="center"><p:commandButton value="#{msg['body.loginpanel.button.label']}" action="#{usuarioController.login}" image="login-button" ajax="false" /></td>
														</tr>
													</table>											
												</td>
											</tr>
										</table>
									</td>								
								</tr>
								<tr>
									<td height="20px">
									
									</td>
								</tr>					
							</table>	
						</td>
					</tr>
				</tbody>
			</table>
		</h:form>
	</ui:composition>
</html>